<template>
	<view>
		<view class="dsr">
			对方单位信息
		</view>
		<view class="contentView flex-row-space-between" style="margin-top: 20rpx;">
			<view class="name">
				单位名称
			</view>
			<input @input="textInput" :disabled="isEdit" v-model="infoDic.oppositeunitname" class="inputView" placeholder="请输入"/>
		</view>
		<view class="contentView flex-row-space-between" style="margin-top: 20rpx;">
			<view class="name">
				法人/负责人
			</view>
			<input @input="textInput" :disabled="isEdit" v-model="infoDic.oppositeunitlegalpersons" class="inputView" placeholder="请输入"/>
		</view>
		<view class="contentView flex-row-space-between">
			<view class="name">
				统一社会信用代码
			</view>
			<input @input="textInput" :disabled="isEdit" v-model="infoDic.oppositeunitcreditcode" class="inputView" placeholder="选填"/>
		</view>
		<view class="contentView flex-row-space-between">
			<view class="name">
				联系方式
			</view>
			<input @input="textInput" :disabled="isEdit" v-model="infoDic.oppositeunitcontact" class="inputView" placeholder="请输入"/>
		</view>
	</view>
</template>

<script>
	export default {
		name:"duiFangDanWeiXinXi",
		props: {
			//当前组件内容信息
			infoDic: {
				type: Object,
				default: function() {
					return {
						oppositeunitname: '',
						oppositeunitlegalpersons: '',
						oppositeunitcreditcode:'',
						oppositeunitcontact:''
					};
				}
			},
			//当前组件是否可编辑
			isEdit: {
				type: Boolean,
				default: false,
			},
		},
		data() {
			return {
				
			};
		},
		methods:{
			textInput(){
				console.log('this.infoDic----',this.infoDic)
				this.$emit('duiFangDanWeiInfoCallBack', this.infoDic)
			},
		}
	}
</script>

<style>
	.inputView{
		width: 440rpx;
		margin-left: 12rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 30rpx;
		color: #333333;
		text-align: right;
	}
	.name{
		width: 250rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 30rpx;
		color: #333333;
	}
	.contentView{
		padding-left: 24rpx;
		padding-right: 24rpx;
		padding-top: 20rpx;
		padding-bottom: 20rpx;
	}
	.dsr{
		margin-left: 24rpx;
		margin-top: 40rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
	}
</style>